<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0 maximum-scale=1.0, user-scalable=no" />
	<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
	<link rel="stylesheet" href="css/questudy.css" />
	
	<script src="http://code.jquery.com/jquery.js"></script>
	<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
	<script src="js/questudy.js" ></script>
	<script src="js/study/study_notice.js"></script>
<title>공지사항 글쓰기</title>
</head>
<%
	int studyId = ((Integer)request.getAttribute("studyId")).intValue();
%>
<body>
	<jsp:include page="nav/nav_main.jsp"></jsp:include>
	<jsp:include page="nav/nav_study.jsp"></jsp:include>
	<div class="container firstDiv">
		<div class="col-md-6 col-md-offset-3">
			<form method="post" name="makeForm" action="NewAction.Board?studyId=<%=studyId%>">
				<div class="input-group">
					<span class="input-group-addon">제목</span>
					<input type="text" name="title" id="title" class="form-control" placeholder="제목">
				</div>
				<div class="input-group">
					<span class="input-group-addon">내용</span>
					<textarea class="form-control" name="content" id="content" rows="10" placeholder="내용" ></textarea>
				</div>
				<p class="text-center" style="margin-top:20px;"><button type="button" class="btn btn-default" onclick="makeNotice()">글쓰기</button></p>
				<p class="text-center text-warning" id="message"></p>
			</form>
		</div>
	</div>
</body>
</html>